#!/bin/bash
set -e  # 启用错误检测

echo "==> edit runDockerBuild.sh"
if [[  -f runDockerBuild.sh ]]; then
    sed -i "s|\$PROJECT_NAME|$MODULE|g" runDockerBuild.sh
    sed -i "s|\$VERSION_TIME|$VERSION_TIME|g" runDockerBuild.sh
    sed -i "s|\$VERSION_GIT|$VERSION_GIT|g" runDockerBuild.sh
    sed -i "s|\$PROFILES_ACTIVE|$PROFILES_ACTIVE|g" runDockerBuild.sh
    sed -i "s|\$PORT_HOST|$PORT_HOST|g" runDockerBuild.sh
    sed -i "s|\$PORT_CONT|$PORT_CONT|g" runDockerBuild.sh
    sed -i "s|\$Dockerfile|$Dockerfile|g" runDockerBuild.sh
    sed -i "s|\$REMOTE_DIRECTORY|$REMOTE_DIRECTORY|g" runDockerBuild.sh
else
    echo "runDockerBuild.sh 文件为空或不存在。"
fi


